﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KDSugar.Galaxy.API.MetaData.Result
{
    /// <summary>
    /// 实体信息类
    /// </summary>
    public class MDEntityInfo
    {
        /// <summary>
        /// 实体内码
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 实体Key
        /// </summary>
        public string Key { get; set; }

        /// <summary>
        /// 实体名称
        /// </summary>
        public List<Helper.KVName> Name { get; set; }

        /// <summary>
        /// 表名
        /// </summary>
        public string TableName { get; set; }

        /// <summary>
        /// 所属业务对象ID
        /// </summary>
        public string ParentKey { get; set; }

        /// <summary>
        /// EntryName
        /// </summary>
        public string EntryName { get; set; }

        /// <summary>
        /// EntryPkFieldName
        /// </summary>
        public string EntryPkFieldName { get; set; }

        /// <summary>
        /// PkFieldType
        /// </summary>
        public string PkFieldType { get; set; }

        /// <summary>
        /// 字段信息
        /// </summary>
        public List<MDFieldInfo> Fields { get; set; }

        /// <summary>
        /// EntityType
        /// </summary>
        public string EntityType { get; set; }
    }
}
